<%-- 
    Document   : Login
    Created on : 31/05/2014, 16:15:20
    Author     : Julio
--%>

<%@page import="br.com.fatecpg.jdbc.web.OracleConnector"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
 <html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	 <title> Login </title>
	 
	 
	 <style>
	    body{
		  background-color:#F0FFF0;
		}
		
	   #login-box{
         background-color:#54FF9F;
		 width:420px;
		 height:285px;
		 margin:140px auto 0px;
		 border-radius:5px;
		 opacity:0.5;
        }
        
        #login-box-interno{
          width:400px;
		  height:300px;
		  background-color:white;
		  position:absolute;
		  margin:10px;
		  border-radius:5px;
		  box-shadow:0px 0px 5px black;
		  overflow:hidden;
        }		
	     #login-box-label{
		   background-color:#DCDCDC;
		   height:45px;
		   text-align:center;
		   
		   font: bold 14px/45px sans-serif;
		   
		   border-top-left-radius:5px;
		   border-top-right-radius:5px;
		   
		   border-botton:1px solic #bfc3c5;
		   box-shadow:1px 0px 3px black;
		 }
		 
		 .input-div{
		   margin:20px;
		   padding:5px;
		   background-color:#f2f5f7;
		   border-radius:3px;
		 }
		 
		 .input-div input{
		    width:310px;
			height:35px;
			padding-left:5px;
			font: normal 13px sans-serif;
			color:#aeaeae;
			border-radius:3px;
			border:1px solid #bfc4c6;
			outline:non
		 }
		   #input-senha{
		     margin-top:-10px;
		   }
		   
		  
		   
	
	 </style>
	</head>
       
		<body>
		  <div id="login-box">
		     <div id="login-box-interno">
			   <div id="login-box-label">
			     Login 
               </div>
                         <div> <form method="post"  action="validarusu.jsp"> 
                 <div class="input-div" id="input-usuario" >
				    
                  Usuário <input type="text"  name="txt_login" value="Usuario">
                 </div>
                  
                 <div class="input-div" id="input-senha" >
				   
                   Senha <input type="text" name="senha" value="Senha" >
                   </br>
                   </div>
                                 <center>
				 <div id=botao>
                                     <input type="submit" value="Entrar"/>
                   
				   </div>
                   <div>
                                 <a href="Cadastro.jsp" > <b><u> Cadastrar-se </u> </b> </a>
                                 </div> 
                                 </center>   
                             </form>
                             <% /*
                                 if(request.getParameter("txt_login")!=null){
                                     String user=request.getParameter("txt_login");
                                     String pass=request.getParameter("senha");
                                     String SQL="SELECT * FROM cliente WHERE cd_cpf_cliente='"+user+"' AND cd_senha='"+pass+"'";
                                     if(OracleConnector.getQuery(SQL).size()>0){
                                         session.setAttribute("txt_login", request.getParameter("txt_login"));
                                         response.sendRedirect(request.getContextPath());
                                     } 
                                     } else{
                                         out.println("<span style='color:red;'>Usuário e/ou senha inválido(s)! </span>");
                                     }
                                 }else if(request.getParameter("logoff")!=null){
                                     session.removeAttribute("txt_login");
                                     response.sendRedirect(request.getContextPath());
                                 }
                                 if(session.getAttribute("txt_login")==null){
                                     String redirectURL="login.jsp";
                                     response.sendRedirect(redirectURL);
                                 }*/
                                 
                             %>
                                
                 </div>					  
			</div>
		  </div>
		    
	    </body>
		
</html>
